package com.zuoye.day18;

public class SaleTicket {
    public static void main(String[] args) {
        ThreadSaleTicket ticket = new ThreadSaleTicket();
        Thread A = new Thread(ticket);
        Thread B = new Thread(ticket);
        Thread C = new Thread(ticket);
        A.setName("窗口1");
        B.setName("窗口2");
        C.setName("窗口3");
        A.start();
        B.start();
        C.start();

    }

}
